// 封装注册指令

// import { install } from 'element-ui'
// import Vue from 'vue'
import { zh } from '@/api/constant/employees'

const directive = {
  install(Vue) {
    const directivex = {
      fsdfs: {
        inserted(dom, obj) {
          dom.innerText = zh(obj.arg, obj.value)

          console.log(obj)
        }
      }
    }

    // 循环注册指令
    Object.keys(directivex).forEach(v => {
      Vue.directive(v, directivex[v])
    })
  }

}

export default directive
